#include "servers.h"
#include "SCLogin.h"
#include <iostream>
using namespace SocketLib;


int main(){
	ListeningManager<Telnet, SCLogin> lmanager;
	ConnectionManager<Telnet, SCLogin> cmanager(128);
	lmanager.AddPort(4001);
	lmanager.SetConnectionManager(&cmanager);
	while(1){
		lmanager.Listen();
		cmanager.Manage();
		sleep(1);
	}
	return 0;
}